#pragma once
#include <YSimpleSystem/IThread.h>

namespace ysimple_system
{
	class YThread :
		public IThread
	{
		HANDLE m_hWin32Thread;
		UINT m_win32ThreadID;
		IThreadCallback*	m_pCallback;
	public:
		YThread(void);
		virtual ~YThread(void);

		bool	init(IThreadCallback& callback) override;
		void	start() override;
		void	join() override;
		HANDLE		getHandle() override;
		void	release() override;

		static UINT __stdcall runThreadFunc( LPVOID lpParam );

		
	};


}
